<?php $this->load->view('base/header');?>

<link rel="stylesheet" media="screen" href="<?php echo base_url().'css/jquery.datatable.gui.css'?>"/>
<link rel="stylesheet" media="screen" href="<?php echo base_url().'css/jquery-ui-1.8.14.custom.css'?>"/>

<script type="text/javascript" src="<?php echo base_url().'js/jquery-ui-1.8.14.custom.min.js'?>"></script>
<script type="text/javascript" src="<?php echo base_url().'js/jquery.dataTables.js'?>"></script>
<script type="text/javascript" src="<?php echo base_url().'js/jquery.dataTables.ajaxPlugin.js'?>"></script>
<script type="text/javascript" src="<?php echo base_url().'js/crud/anggota.js'?>"></script>

<section>
    <div class="container_8 clearfix">

        <!-- Main Section -->

        <section class="main-section grid_8">

            <!-- Statistics Section -->
            <div class="main-content">
                <header>
                    <h2>
                        Tabel Master
                    </h2>
                </header>
                <section class="container_6 clearfix">
                    <div class="grid_6">
                        <h3>Tabel anggota
                            <?php $this->load->view('crud/navigation');?>
                        </h3>
                        <div style="float: right; margin: 0 5px 3px 0;">
                            <button class="button button-gray" id="anggota_add">
                                <span class="add"></span>
                                Add
                            </button>
                        </div>
                        <div id="dialog-anggota">
                            <table id="anggota_master" width="100%" class="datatable">
                                <thead>
                                </thead>
                                <tbody>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </section>

                <div id="dialog-anggota-form">
                    <form id="anggota_form" class="form" method="post">

                        <div style="float: left">
                            <!--<div class="clearfix">
                                <label>ID Anggota<em>*</em></label>
                                <input type="text" id="ID_ANGGOTA" name="ID_ANGGOTA" required="required" value=""/>
                            </div>-->

                            <div class="clearfix">
                                <label>Nama Anggota<em>*</em></label>
                                <input type="text" id="NAMA_ANGGOTA" name="NAMA_ANGGOTA" value=""/>
                            </div>

                            <div class="clearfix">
                                <label>Tanggal Lahir<em>*</em></label>
                                <input type="text" id="TGL_LAHIR" name="TGL_LAHIR" class="" value=""/>
                            </div>

                            <div class="clearfix">
                                <label>Alamat<em>*</em></label>
                                <input type="text" id="ALAMAT" name="ALAMAT" value=""/>
                            </div>

                            <div class="clearfix">
                                <label>Kota<em>*</em></label>
                                <select id="NAMA_KOTA" name="NAMA_KOTA">
                                    <?php foreach($Kota->result() as $row):?>
                                    <option value="<?php echo $row->NAMA_KOTA?>"><?php echo $row->NAMA_KOTA?></option>
                                    <?php endforeach;?>
                                </select>
                            </div>

                            <div class="clearfix">
                                <label>Telpon 1<em>*</em></label>
                                <input type="text" id="TELPON1" name="TELPON1" value="" maxlength="15" size="15"/>
                            </div>

                            <div class="clearfix">
                                <label>Telpon 2<em>*</em></label>
                                <input type="text" id="TELPON2" name="TELPON2" value="" maxlength="15" size="15"/>
                            </div>
                        </div>

                        <div style="float: left">
                            <div class="clearfix">
                                <label>Unit<em>*</em></label>
                                <select id="ID_UNIT" name="ID_UNIT">
                                    <?php foreach($Unit->result() as $row):?>
                                    <option value="<?php echo $row->ID_UNIT?>"><?php echo $row->NAMA_UNIT?></option>
                                    <?php endforeach;?>
                                </select>
                            </div>

                            <!--<div class="clearfix">
                                <label>NO_BARU<em>*</em></label>
                                <input type="text" id="NO_BARU" name="NO_BARU" value=""/>
                            </div>

                            <div class="clearfix">
                                <label>SN<em>*</em></label>
                                <input type="text" id="SN" name="SN" value=""/>
                            </div>

                            <div class="clearfix">
                                <label>GGI<em>*</em></label>
                                <input type="text" id="GGI" name="GGI" value=""/>
                            </div>-->

                            <div class="clearfix">
                                <label>Jenis Anggota<em>*</em></label>
                                <input type="text" id="JENIS_ANGGOTA" name="JENIS_ANGGOTA" value=""/>
                            </div>

                            <div class="clearfix">
                                <label>Divisi<em>*</em></label>
                                <select id="NAMA_DIVISI" name="NAMA_DIVISI">
                                    <?php foreach($Devisi->result() as $row):?>
                                    <option value="<?php echo $row->NAMA_DIVISI?>"><?php echo $row->NAMA_DIVISI?></option>
                                    <?php endforeach;?>
                                </select>
                            </div>

                            <div class="clearfix">
                                <label>Golongan<em>*</em></label>
                                <input type="text" id="GOLONGAN" name="GOLONGAN" value=""/>
                            </div>

                            <div class="clearfix">
                                <label>Mulai<em>*</em></label>
                                <input type="text" id="MULAI" name="MULAI" value=""/>
                            </div>

                            <!--<div class="clearfix">
                                <label>Iuran Pokok<em>*</em></label>
                                <input type="text" id="IURAN_POKOK" name="IURAN_POKOK" value=""/>
                            </div>

                            <div class="clearfix">
                                <label>Iuran Wajib<em>*</em></label>
                                <input type="text" id="IURAN_WAJIB" name="IURAN_WAJIB" value=""/>
                            </div>

                            <!--                            <div class="clearfix">
                                                            <label>TGL_CATAT<em>*</em></label>
                                                            <input type="text" id="TGL_CATAT" name="TGL_CATAT" value=""/>
                                                        </div>-->
                        </div>

                        <div class="action clearfix">
                            <button class="button button-gray" id="add_submit" type="submit"><span class="accept"></span>Add</button>
                            <button class="button button-gray" id="update_submit" type="submit"><span class="accept"></span>Update</button>
                            <button class="button button-gray" type="reset">Reset</button>
                        </div>
                    </form>
                </div>

            </div>
            <!-- End Statistics Section -->

        </section>

        <!-- Main Section End -->

    </div>
</section>
</div>

<?php $this->load->view('base/footer');?>
